<?php

namespace app\models\base;

use Yii;

/**
 * This is the model class for table "chindor_market".
 *
 * @property string $market_id
 * @property integer $project_num
 * @property integer $all_value
 * @property double $all_cost
 * @property integer $all_expected_cost
 * @property integer $all_gold
 * @property integer $surplus_gold
 * @property integer $surplus_value
 * @property integer $used_gold
 * @property integer $used_value
 * @property integer $current_user_num
 * @property integer $current_activity_num
 */
class Market extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'chindor_market';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['project_num', 'all_value', 'all_expected_cost', 'all_gold', 'surplus_gold', 'surplus_value', 'used_gold', 'used_value', 'current_user_num', 'current_activity_num'], 'integer'],
            [['all_cost'], 'number']
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'market_id' => 'Market ID',
            'project_num' => 'Project Num',
            'all_value' => 'All Value',
            'all_cost' => 'All Cost',
            'all_expected_cost' => 'All Expected Cost',
            'all_gold' => 'All Gold',
            'surplus_gold' => 'Surplus Gold',
            'surplus_value' => 'Surplus Value',
            'used_gold' => 'Used Gold',
            'used_value' => 'Used Value',
            'current_user_num' => 'Current User Num',
            'current_activity_num' => 'Current Activity Num',
        ];
    }
}
